import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'connectivitytest_method_channel.dart';

import './define.dart';

abstract class ConnectivitytestPlatform extends PlatformInterface {
  /// Constructs a ConnectivitytestPlatform.
  ConnectivitytestPlatform() : super(token: _token);

  static final Object _token = Object();

  static ConnectivitytestPlatform _instance = MethodChannelConnectivitytest();

  /// The default instance of [ConnectivitytestPlatform] to use.
  ///
  /// Defaults to [MethodChannelConnectivitytest].
  static ConnectivitytestPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [ConnectivitytestPlatform] when
  /// they register themselves.
  static set instance(ConnectivitytestPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<void> StartDiscovery() {
    throw UnimplementedError('StartDiscovery() has not been implemented.');
  }

  Future<void> StopDiscovery() {
    throw UnimplementedError('StartDiscovery() has not been implemented.');
  }

  Future<List<DeviceInfo>> GetAllDeviceInfo() {
    throw UnimplementedError('GetAllDeviceInfo() has not been implemented.');
  }
}
